<?php

namespace app\model\pic;

use app\BaseModel;
use app\model\video\VideoModel;
use think\model\relation\HasMany;

/**
 * 图片类型
 */
class PicTypeModel extends BaseModel
{
    protected $name = 'pic_type';

    /**
     * 视频
     * @return HasMany
     */
    public function Pic(): HasMany
    {
        return $this->hasMany(PicModel::class,'type_id');
    }
}